package com.huashi.dealer.modular.business.discount.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "优惠活动新增/编辑参数")
public class DiscountActiveSaveParam {
    @Schema(description = "活动ID，编辑时必填")
    private Long discountId;

    @Schema(description = "最低数量")
    private Integer minNum;

    @Schema(description = "活动名称")
    private String title;

    @Schema(description = "适用商品ID集合")
    private List<Long> goodsIds;

    @Schema(description = "起订规格列表")
    private List<SpecItem> setNum;

    @Schema(description = "活动状态：10开启，20下架")
    private Integer status;

    @Data
    @Schema(description = "起订规格项")
    public static class SpecItem {
        @Schema(description = "起订数量")
        private Integer num;
        @Schema(description = "活动价格")
        private BigDecimal price;
    }
}


